import React from "react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import store from "./store";
import "./index.scss";

import { RouterProvider } from "react-router-dom";
import router from "./router/index";

const root = ReactDOM.createRoot(document.getElementById("root"));

//如果组件中使用了一些react已经不推荐的用法，就会报错
root.render(
  <Provider store={store}>
    <RouterProvider router={router} />
  </Provider>
);
